import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '订单编号',
    align: "center",
    dataIndex: 'orderNo',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: '公司名称',
    align: "center",
    dataIndex: 'subUnitName',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: '充值金额',
    align: "center",
    sorter: true,
    dataIndex: 'amount',
    customRender:({text}) =>{
      return !text ? "0.00" : text.toFixed(2);
    },
  },
  // {
  //   title: '服务费',
  //   align: "center",
  //   dataIndex: 'serviceFee',
  //   customRender:({text}) =>{
  //     return !text ? "0.00" : text.toFixed(2);
  //   },
  // },
  {
    title: '附属信息',
    align: "center",
    dataIndex: 'paymentAccount',
    slots: { customRender: 'subsidiarySlot' },
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  // {
  //   title: '充值状态',
  //   align: "center",
  //   dataIndex: 'status',
  //   slots: { customRender: 'statusSlot' },
  // },
  {
    title: '充值时间',
    align: "center",
    sorter: true,
    dataIndex: 'receiptTime'
  },
];
